package com.sp.scmdb.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Type;
import org.joda.time.DateTime;

import com.sp.scmdb.common.DomainObject;

@Entity
@Table(name = "OBJ_LOG")
public class Log extends DomainObject {

	/** 用户ID */
	@Column(name = "NAME_USER")
	private String nameUser;

	/** 日志内容 */
	@Column(name = "OPERATION")
	private String operation;

	/** 操作时间 */
	@Column(name = "DT_OPERRATION")
	@Type(type = "org.joda.time.contrib.hibernate.PersistentDateTime")
	private DateTime dtOperation;

	public DateTime getDtOperation() {
		return dtOperation;
	}

	public void setDtOperation(DateTime dtOperation) {
		this.dtOperation = dtOperation;
	}

	/**
	 * 用户ID取得
	 * 
	 * @return 用户ID
	 */
	public String getNameUser() {
		return nameUser;
	}

	/**
	 * 用户ID设置
	 * 
	 * @param idUser
	 */
	public void setNameUser(String nameUser) {
		this.nameUser = nameUser;
	}

	/**
	 * 日志内容取得
	 * 
	 * @return 日志内容
	 */
	public String getOperation() {
		return operation;
	}

	/**
	 * 日志内容设置
	 * 
	 * @param operation
	 */
	public void setOperation(String operation) {
		this.operation = operation;
	}

}